module.exports = function(grunt) {

	grunt.initConfig({

		pkg: grunt.file.readJSON('package.json'),


		transport : {
			sffruit : {
				files : {
					'.build' : [
						'./static_v3/js/test/indexFindTest.js', 
						//'./static_v3/js/addcar_quick.js',
						'./static_v3/js/historyCookie.js',
						'./static_v3/js/common.js', 
						'./static_v3/js/webcall_message.js', 
						'./static_v3/js/public.js'

					]
				}
			}
		},



		concat : {
			sffruit : {
				files : {
					'./static_v3/js/minJS/indexFind.js' : [
						'static_v3/js/plug/jquery.min.js',
						'static_v3/js/plug/hammer.min.js',
						//'static_v3/js/plug/swiper.jquery.min.js',
						//'static_v3/js/plug/lazyload_echo.js', 
						'static_v3/js/plug/layer/layer.js',
						//'static_v3/js/shop.js',
						'static_v3/js/baiduCount.js',
						

						'.build/static_v3/js/test/indexFindTest.js', 
						//'.build/static_v3/js/addcar_quick.js', 
						'.build/static_v3/js/historyCookie.js',
						'.build/static_v3/js/common.js', 
						'.build/static_v3/js/webcall_message.js',
						'.build/static_v3/js/public.js'

					]
				}
			}
		},

		uglify : {
			sffruit : {
				files : {
					'./static_v3/js/minJS/indexFind.min.js' : [
						'static_v3/js/minJS/indexFind.js'
					]
				}
			}
		},


	});

	grunt.loadNpmTasks('grunt-cmd-transport');

	grunt.loadNpmTasks('grunt-contrib-concat');

	grunt.loadNpmTasks('grunt-contrib-uglify');

  	grunt.registerTask('default', ['transport','concat','uglify']);
	//grunt.registerTask('default', ['transport','concat']);


};